<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        const studentAges = ['小王:17', '小赵:16', '小李:17', '小孙:16', '小徐:18']
        for (var student of studentAges){
            var studentInfo = student.split(':')
            var studentName = studentInfo[0]
            var studentAge = studentInfo[1]
            console.log(`我的名字是${studentName}，我今年${studentAge}，很高兴认识大家`)
        } 


        var obj1 = {
            name :'caip',
            age : 18,
            hobby : 'F1',
            work : function(){
              console.log('我每天都要上班，我真的不想上班')
            }
        }

        infoOfobj1 = Object.entries(obj1)
        console.log(infoOfobj1)
        for (var kv of infoOfobj1){
            console.log(`属性名是${kv[0]}`)
            console.log(`属性值是${kv[1]}`)
        }

        var list1 = ['关羽','张飞','赵云','马超','黄忠']
        var list2 = ['典韦','许褚','张辽','夏侯惇','夏侯渊']
        for (fighter1 of list1){
            for (fightter2 of list2){
                console.log(`${fighter1}大战${fightter2}`)
            }
        }
    </script>
</head>
<body>
    
</body>
</html>